if(window.jstiming){window.jstiming.beaconImageReferences_={};window.jstiming.reportCounter_=1;var getTick=function(c,a,f){a=c.t[a];c=c.t.start;if(!a||!(c||f))return undefined;if(f!=undefined)c=f;return a-c},getReportUri=function(c,a,f){var b="";if(window.jstiming.pt){b+="&srt="+window.jstiming.pt;delete window.jstiming.pt}try{if(window.external&&window.external.tran)b+="&tran="+window.external.tran;else if(window.gtbExternal&&window.gtbExternal.tran)b+="&tran="+window.gtbExternal.tran();else if(window.chrome&&
window.chrome.csi)b+="&tran="+window.chrome.csi().tran}catch(d){}var e=window.chrome;if(e)if(e=e.loadTimes){if(e().wasFetchedViaSpdy)b+="&p=s";if(e().wasNpnNegotiated)b+="&npn=1";if(e().wasAlternateProtocolAvailable)b+="&apa=1"}if(c.dapperCookie_)b+="&"+c.dapperCookie_;e=c.t;var i=e.start,k=[];for(var o in e)o!="start"&&i&&k.push(o+"."+getTick(c,o));delete e.start;if(a)for(var p in a)b+="&"+p+"="+a[p];return c=[f?f:"http://csi.gstatic.com/csi","?v=3","&s="+(window.jstiming.sn||"codesite")+"&action=",
c.name,b,"&rt=",k.join(",")].join("")};window.jstiming.report=function(c,a,f){c=getReportUri(c,a,f);a=new Image;var b=window.jstiming.reportCounter_++;window.jstiming.beaconImageReferences_[b]=a;a.onload=a.onerror=function(){delete window.jstiming.beaconImageReferences_[b]};a.src=c;a=null;return c}};(function(){var c={dictionariesList:["products","programs","searchSuggest","searchResultTabs"],products:{includeInSearchSuggest:true,entries:{afa:{title:"AdSense for Ajax",url:"/apis/afa/",keywords:{ads:10,adsense:10}},afsadsonly:{title:"AdSense for Search Ads Only",url:"/apis/afs-ads-only/",keywords:{ads:10,adsense:10}},charttools:{title:"Chart Tools",url:"/apis/charttools/",keywords:{chart:10,graph:10}},android:{title:"Android",groupsTitle:"Android Groups",url:"/android/",keywords:{mobile:10}},
gdata:{title:"Google Data Protocol",groupsTitle:"Google Data Protocol Groups",url:"/apis/gdata/",keywords:{feed:1,entry:1,entries:6,"data api":10,gdata:10,data:6,protocol:4,atom:1,atompub:1,json:1}},blogger:{title:"Blogger Data API (Labs)",groupsTitle:"Blogger Data API Groups",url:"/apis/blogger/",keywords:{apis:1,feed:1,entries:2,gentries:1,"data apis":4}},buzz:{title:"Google Buzz API (Labs)",groupsTitle:"Google Buzz API Groups",url:"/apis/buzz/",keywords:{apis:1,feed:1,entries:2,social:1,gentries:1}},
chromium:{title:"Chromium",groupsTitle:"Chromium Groups",url:"/chromium/",keywords:{browser:10,chrome:1,chromium:10,v8:1}},chromeframe:{title:"Google Chrome Frame",groupsTitle:"Chrome Frame Groups",url:"/chrome/chromeframe/",keywords:{browser:5,chrome:4,chromium:1,v8:1,html5:3,ie:1,"internet explorer":1}},chromeextensions:{title:"Google Chrome Extensions (Labs)",groupsTitle:"Google Chrome Extensions Groups",url:"/chrome/extensions/",keywords:{chrome:5,chromium:1,browser:1,html5:1,extensions:8}},chromeapps:{title:"Installable Web Apps (Labs)",
groupsTitle:"Web App Groups",url:"/chrome/apps/",keywords:{chrome:5,chromium:1,html5:2,app:8,"chrome web store":10,store:8}},feedburner:{title:"Feedburner APIs (Labs)",groupsTitle:"FeedBurner Groups",url:"/apis/feedburner/",keywords:{feed:10}},accounts:{title:"Google Account Authentication",groupsTitle:"Google Account Authentication Groups",url:"/apis/accounts/",keywords:{apis:1,feed:1,entries:1,gentries:1}},adsense:{title:"Google AdSense API",groupsTitle:"Google AdSense API Groups",url:"/apis/adsense/",
keywords:{ads:1,apis:1}},adwords:{title:"Google AdWords API",groupsTitle:"Google AdWords API Groups",url:"/apis/adwords/",keywords:{ads:2,apis:1}},ajax:{title:"Google AJAX APIs",groupsTitle:"Google AJAX APIs Groups",url:"/apis/ajax/",keywords:{ajax:10,apis:10}},ajaxfeeds:{title:"Google AJAX Feed API",groupsTitle:"Google AJAX Feed API Groups",url:"/apis/ajaxfeeds/",keywords:{ajax:8,apis:5,feed:6}},ajaxlanguage:{title:"Google AJAX Language API",groupsTitle:"Google AJAX Language API Groups",url:"/apis/ajaxlanguage/",
keywords:{ajax:8,apis:5,language:10}},libraries:{title:"Google Libraries API",groupsTitle:"Google AJAX APIs Groups",url:"/apis/libraries/",keywords:{apis:5,libraries:6,"chrome frame":4,dojo:4,"ext core":4,jquery:4,jqueryui:4,mootools:4,prototype:4,scriptaculous:4,SWFObject:4,"yahoo user interface library":4,YUI:4,webfont:4}},ajaxsearch:{title:"Google AJAX Search API",groupsTitle:"Google AJAX Search API Groups",url:"/apis/ajaxsearch/",keywords:{ajax:9,apis:10,search:6,translate:5}},analytics:{title:"Google Analytics",
groupsTitle:"Google Analytics Groups",url:"/apis/analytics/",keywords:{tools:1,apis:1,"data apis":1}},appengine:{title:"Google App Engine",groupsTitle:"Google App Engine Groups",url:"/appengine/",keywords:{apis:5,tools:1,java:8,eclipse:1,app:8,"app engine":10,plugin:1}},appsscript:{title:"Google Apps Script",url:"/googleapps/appsscript/",keywords:{"google apps":1,"apps script":10,scripts:10,enterprise:1,javascript:1,business:1,automation:1,automate:1}},storage:{title:"Google Storage for Developers (Labs)",
url:"/apis/storage/",keywords:{storage:10,"google storage":10,apis:1,"storage apis":10}},predict:{title:"Google Prediction API (Labs)",url:"/apis/predict/",keywords:{prediction:10,"machine learning":10,"predictive modelling":10,"data analysis":5}},bigquery:{title:"BigQuery (Labs)",url:"/apis/bigquery/",keywords:{"data analysis":10,"data modelling":10,"structured data":5}},googleapps:{title:"Google Apps",url:"/googleapps/",keywords:{"google apps":10,gadgets:1,enterprise:1,"app engine":1,business:1,
firewall:1,sdc:1}},marketplace:{title:"Google Apps Marketplace",url:"/googleapps/marketplace/",keywords:{"google apps":9,marketplace:10,enterprise:1,business:1,saas:1,isv:1}},gmail:{title:"Gmail APIs and Tools",url:"/apis/gmail/",keywords:{gmail:10,contextual:10,gadgets:1}},base:{title:"Google Base Data API (Labs)",groupsTitle:"Google Base Data API Groups",url:"/apis/base/",keywords:{apis:1,feed:1,entries:2,gentries:1,"data apis":2}},books:{title:"Google Book Search APIs (Labs)",groupsTitle:"Google Book Search APIs Groups",
url:"/apis/books/",keywords:{ajax:9,apis:10,search:1,feeds:1,books:1}},calendar:{title:"Google Calendar APIs and Tools",groupsTitle:"Google Calendar APIs and Tools Groups",url:"/apis/calendar/",keywords:{apis:1,feed:5,entries:2,gadgets:3,gentries:1,"data apis":3,tools:1}},checkout:{title:"Google Checkout",groupsTitle:"Google Checkout API Groups",url:"/apis/checkout/",keywords:{apis:5,sell:5,buy:5,ecommerce:5}},closure:{title:"Closure Tools",url:"/closure/",keywords:{javascript:1,template:1,compiler:1,
minifier:1}},cloudprint:{title:"Google Cloud Print (Labs)",url:"/apis/cloudprint/",keywords:{chrome:5,chromium:1,html5:2,app:8}},codesearch:{title:"Google Code Search Data API (Labs)",groupsTitle:"Google Code Search Data API Groups",url:"/apis/codesearch/",keywords:{apis:1,feed:1,entries:1,gentries:1,search:1}},customsearch:{title:"Google Custom Search API",groupsTitle:"Google Custom Search API Groups",url:"/apis/customsearch/",keywords:{apis:1,ads:1,custom:1,search:3,cse:1}},contacts:{title:"Google Contacts APIs",
groupsTitle:"Google Contacts APIs Groups",url:"/apis/contacts/",keywords:{apis:1,feed:1,entries:2,gentries:1,contacts:1,"data apis":4}},coupons:{title:"Google Coupon Feeds (Labs)",url:"/apis/coupons/",keywords:{feed:1}},desktop:{title:"Google Desktop APIs (Labs)",searchTabTitle:"Google Desktop APIs",groupsTitle:"Google Desktop APIs Groups",url:"/apis/desktop/",keywords:{gadgets:1,search:1}},dfp:{title:"Google's DoubleClick for Publishers (Labs)",groupsTitle:"Google's DoubleClick for Publishers API Forum",
url:"/apis/dfp/",keywords:{ads:2,apis:1}},documents:{title:"Google Documents List Data API",groupsTitle:"Google Documents List Data API Groups",url:"/apis/documents/",keywords:{apis:1,feed:1,entries:2,gentries:1,"data apis":3}},gtt:{title:"Google Translator Toolkit Data API",groupsTitle:"Google Translator Toolkit Data API Help Forum",url:"/apis/gtt/",keywords:{apis:1,feed:1,entries:2,"data apis":3,toolkit:5,translate:8,"translator toolkit":10}},ima:{title:"Google Interactive Media Ads (Labs)",url:"/apis/ima/",
keywords:{apis:1,DoubleClick:10,"interactive media ads":10,ima:10,ads:1,video:1,flash:1,silverlight:1}},earth:{title:"Google Earth API",groupsTitle:"Google Earth API Groups",url:"/apis/earth/",keywords:{apis:4,developer:1,"developer day":1,geo:6,maps:6,kml:6}},eclipse:{title:"Google Plugin for Eclipse",url:"/eclipse/",keywords:{java:3,gwt:1,"app engine":1,"plug-in":10}},finance:{title:"Google Finance Data API (Labs)",url:"/apis/finance/",keywords:{apis:4,feeds:1,"data apis":1}},flashmaps:{title:"Google Maps API For Flash",
url:"/apis/maps/documentation/flash/",keywords:{ajax:7,apis:4,actionscript:1,geo:6,maps:6}},friendconnect:{title:"Google Friend Connect APIs (Labs)",url:"/apis/friendconnect/",keywords:{apis:5,gadgets:5,social:10,friend:10}},fusion:{title:"Google Fusion Tables API (Labs)",url:"/apis/fusiontables/",keywords:{tables:1}},gadgets:{title:"Gadgets API",groupsTitle:"Gadgets API Groups",url:"/apis/gadgets/",keywords:{finance:1,apis:8,gadgets:6}},gears:{title:"Gears (Labs)",groupsTitle:"Gears Groups",url:"/apis/gears/",
keywords:{ajax:5,apis:9,tools:1}},health:{title:"Google Health API",groupsTitle:"Google Health Developers Groups",url:"/apis/health/",keywords:{"data apis":3,feed:1,health:1,java:1}},igoogle:{title:"iGoogle Developer Home (Labs)",groupsTitle:"iGoogle Developers Groups",url:"/apis/igoogle/",keywords:{ads:3,apis:1,gadgets:1,social:1}},themes:{title:"iGoogle Themes API (Labs)",url:"/apis/themes/",keywords:{apis:1}},kml:{title:"KML",groupsTitle:"KML Groups",url:"/apis/kml/",keywords:{apis:1,geo:4,maps:1}},
latitude:{title:"Google Latitude API (Labs)",groupsTitle:"Google Latitude API Group",url:"/apis/latitude/",keywords:{apis:1,geo:4,maps:1,mobile:3,location:10}},geocoding:{title:"Google Geocoding API",groupsTitle:"Google Maps API Group",url:"/apis/maps/documentation/geocoding/",keywords:{maps:7,geo:6,geocoding:10,apis:3}},directions:{title:"Google Directions API",groupsTitle:"Google Maps API Group",url:"/apis/maps/documentation/directions/",keywords:{maps:7,geo:6,directions:10,apis:3}},maps:{title:"Google Javascript Maps API",
groupsTitle:"Google Maps Javascript API V3 Group",url:"/apis/maps/documentation/javascript/",keywords:{maps:7,geo:6,ajax:3,apis:3,mobile:5}},projecthosting:{title:"Google Project Hosting",groupsTitle:"Hosting at Google Code Group",url:"/projecthosting/",keywords:{"web hosting":6,"code hosting":10,subversion:6}},opensocial:{title:"OpenSocial",groupsTitle:"OpenSocial Groups",url:"/apis/opensocial/",keywords:{social:10,"open source":2,apis:8}},orkut:{title:"Orkut Developer Home",searchTabTitle:"Orkut",
groupsTitle:"Orkut Groups",url:"/apis/orkut/",keywords:{social:8}},safebrowsing:{title:"Google Safe Browsing APIs (Labs)",groupsTitle:"Google Safe Browsing APIs Groups",url:"/apis/safebrowsing/",keywords:{apis:1,feed:1,entries:1,gentries:1}},securedataconnector:{title:"Google Secure Data Connector",groupsTitle:"Google Apps API Discussion Groups",url:"/securedataconnector/",keywords:{"data apis":3,sdc:10,gadgets:1,firewall:10,enterprise:1,"app engine":1,network:1,"google apps":2}},sidewiki:{title:"Google Sidewiki API",
groupsTitle:"Google Sidewiki API Groups",url:"/apis/sidewiki/",keywords:{toolbar:1,gdata:1}},sites:{title:"Google Sites Data API",groupsTitle:"Google Sites Data API Groups",url:"/apis/sites/",keywords:{toolbar:1,gdata:1}},sketchup:{title:"Google SketchUp Ruby API",groupsTitle:"Google SketchUp Ruby API Groups",url:"/apis/sketchup/",keywords:{apis:1,geo:3}},socialgraph:{title:"Social Graph API (Labs)",groupsTitle:"Social Graph API Groups",url:"/apis/socialgraph/",keywords:{social:9}},spreadsheets:{title:"Google Spreadsheets Data API (Labs)",
groupsTitle:"Google Spreadsheets Data API Groups",url:"/apis/spreadsheets/",keywords:{apis:1,feed:1,entries:2,gentries:1,"data apis":4}},staticmaps:{title:"Google Static Maps API",url:"/apis/maps/documentation/staticmaps/",keywords:{apis:1,geo:6,maps:2}},talk:{title:"Google Talk for Developers (Labs)",groupsTitle:"Google Talk XMPP Groups",url:"/apis/talk/",keywords:{apis:1}},transit:{title:"Google Transit Feed Specification",groupsTitle:"Google Transit Feed Groups",url:"/transit/spec/transit_feed_specification.html",
keywords:{feed:1,geo:1,maps:1}},webtoolkit:{title:"Google Web Toolkit",groupsTitle:"Google Web Toolkit Groups",url:"/webtoolkit/",keywords:{ajax:6,java:1,tools:6,eclipse:1,gwt:10}},picasa:{title:"Picasa APIs (Labs)",groupsTitle:"Picasa APIs Groups",url:"/apis/picasa/",keywords:{apis:3,gentries:1}},picasaweb:{title:"Picasa Web Albums Data API",groupsTitle:"Picasa Web Albums Data API Groups",url:"/apis/picasaweb/",keywords:{feed:1,entries:1,gentries:1,"data apis":3}},powermeter:{title:"Google PowerMeter API (Labs)",
url:"/apis/powermeter/",keywords:{apis:1,feed:1,entries:2,gentries:1,"data apis":2}},pubsubhubbub:{title:"PubSubHubbub",url:"/apis/pubsubhubbub/",keywords:{feed:4,atom:8,rss:8,"real time":10}},recaptcha:{title:"reCAPTCHA (Labs)",url:"/apis/recaptcha/",keywords:{apis:1,ajax:1,captcha:5,recaptcha:5,mailhide:5,security:3}},v8:{title:"V8",url:"/apis/v8/",keywords:{apis:1,browser:1,chrome:1,chromium:1,tools:1}},wave:{title:"Google Wave API",groupsTitle:"Google Wave API Groups",url:"/apis/wave",keywords:{wave:10,
robots:5,gadgets:1,embed:3,extensions:1}},webelements:{title:"Google Web Elements",url:"http://www.google.com/webelements/",keywords:{elements:10,news:1,calendar:1,maps:1,youtube:1,spreadsheets:1,presentations:1,search:1}},webmastertools:{title:"Google Webmaster Tools Data API (Labs)",groupsTitle:"Webmaster Tools Data API Groups",url:"/apis/webmastertools/",keywords:{"data apis":1,search:1,tools:1}},youtube:{title:"YouTube APIs",groupsTitle:"YouTube Data API Groups",url:"/apis/youtube/",keywords:{feed:4,
entries:2,gentries:6}}}},programs:{includeInSearchSuggest:true,entries:{opensource:{title:"OpenSource",url:"/opensource/",keywords:{"open source":10}},soc:{title:"Google Summer of Code",url:"/soc/",keywords:{"open source":5}},codejam:{title:"Google Code Jam",url:"/codejam/",keywords:{competition:6}},playground:{title:"Code Playground",url:"/apis/ajax/playground/",keywords:{samples:10,"sample code":10,"run code":1}},hosting:{title:"Project Hosting on Google Code",url:"/hosting/",keywords:{"open source":6}},
edu:{title:"Google Code University",groupsTitle:"Google Code University Groups",url:"/edu/",keywords:{educators:1}},doctype:{title:"Google DocType",groupsTitle:"Google DocType Groups",url:"/doctype/",keywords:{educators:1}},speed:{title:"Let's make the web faster",groupsTitle:"Make the web fast",url:"/speed/",keywords:{speed:8,performance:9}},"page-speed":{title:"Page Speed",groupsTitle:"Page Speed Community",url:"/speed/page-speed/",keywords:{speed:8,performance:9}},webmaster:{title:"Google Webmaster Central",
url:"http://www.google.com/webmasters/",keywords:{crawling:1,indexing:1}},csearch:{title:"Google Code Search (Labs)",url:"http://www.google.com/codesearch",keywords:{search:1}},events:{title:"Developer Events",url:"/events/",keywords:{developer:1,gdd:1,"developer day":1}},googleio:{title:"Google I/O",url:"/events/io/",keywords:{apis:1,gentries:1,"google io":10,events:10,io:10}},gtug:{title:"Google Technology User Groups",url:"http://www.gtugs.org/",keywords:{gtug:10,events:9,group:1,technology:1,
user:1}},developerday:{title:"Developer Days",url:"/events/developerday/",keywords:{developer:1,"developer days":1,gdd:10,events:2,"google developer day":10}},qualify:{title:"Developer Qualification",url:"/qualify/",keywords:{qualify:10,certification:10,training:10}},campfire:{title:"Google Campfire One",url:"/campfire/",keywords:{developer:1}},go:{title:"Go Programming Language",url:"http://www.golang.org",keywords:{golang:2,language:3,compiler:2,parallel:1,concurrent:1,concurrency:1}}}},searchSuggest:{includeInSearchSuggest:true,
entries:{adsenseforaudio:{title:"Google AdSense for Audio API (Deprecated)",url:"/apis/adsenseforaudio/",keywords:{ads:1,apis:1}},notebook:{title:"Google Notebook Data API (Deprecated)",url:"/apis/notebook/",keywords:{apis:1,feed:1,entries:1,gentries:1,"data apis":3}},gra:{title:"Google Radio Automation API (Deprecated)",url:"/apis/gra/",keywords:{java:1,apis:1,radio:10,automation:3}},support:{title:"Knowledge Base",url:"/support/",keywords:{faq:1}},codeblog:{title:"Google Code Blog",url:"http://google-code-updates.blogspot.com/",
keywords:{developer:1}},featuredprojects:{title:"Featured Projects",url:"http://google-code-featured.blogspot.com/",keywords:{developer:1}},labs:{title:"Google Code Labs",url:"/labs/",keywords:{labs:10,experimental:1}},opensourceprojects:{title:"Open Source Projects",url:"/hosting/projects.html",keywords:{"open source":1}},protocolbuffers:{title:"Protocol Buffers",groupsTitle:"Protocol Buffers Groups",url:"/apis/protocolbuffers/",keywords:{serialization:10,"open source":4,apis:8,"structured data":10,
data:1}}}},searchResultTabs:{includeInSearchSuggest:false,entries:{google_code:{title:"Google Code Website"},discussion:{title:"Google Code Groups",groupsTitle:"Google Code Groups"},project_hosting:{title:"Project Hosting"},developer_videos:{title:"Developer Videos"}}}};window.CODESITE_productDictionary_default=c;window.CODESITE_productDictionary=c})();(function(){window.CODESITE_CSIReportDelay=500;window.CODESITE_reportedToCSI=false;function c(){if(jQuery("body.gc-documentation").length>0)return"product_doc";if(window._homepageGadgetData_)return"codesite_home";if(jQuery("#gc-home").length>0)return"product_home";return"other"}function a(){var b=["codesite","sc"],d=c(),e=CODESITE_getProduct();if(e)if(e=="more")b.push("site_directory");else if(e=="search")b.push("cse");else if(e=="support")b.push(e);else if(e=="events")b.push(e);else if(d=="product_doc"){b.push(d);
b.push(e+"_doc")}else{if(d=="product_home"){b.push(d);b.push(e+"_home")}}else d=="codesite_home"&&b.push(d);b.push("intl_"+CODESITE_langLoc);return b.join(",")}function f(){if(!CODESITE_reportedToCSI){var b=a();CODESITE_CSITimer.load.name=b;CODESITE_CSITimer.toc.name=b;window.setTimeout(function(){for(var d in CODESITE_CSITimer)window.jstiming.report(CODESITE_CSITimer[d])},CODESITE_CSIReportDelay);window.CODESITE_reportedToCSI=true}}jQuery(document).ready(function(){CODESITE_CSITimer.load.tick("dom")});
jQuery(window).load(function(){CODESITE_CSITimer.load.tick("plt");f()})})(jQuery);window.CODESITE_langCode={en:"English",de:"Deutsch",es:"Espa\u00f1ol",fa:"\u0641\u0627\u0631\u0633\u06cc",ja:"\u65e5\u672c\u8a9e",ko:"\ud55c\uad6d\uc5b4","pt-BR":"Portugu\u00eas (Brasil)",ru:"P\u0443\u0441\u0441\u043a\u0438\u0439",vi:"Ti\u1ebfng Vi\u1ec7t","zh-CN":"\u4e2d\u6587 (\u7b80\u4f53)","zh-TW":"\u4e2d\u6587 (\u7e41\u9ad4)"};
window.CODESITE_prodLang=[{url:"/apis/orkut/",langloc:["en","es","ja","ko","pt-BR","ru","vi","zh-CN","zh-TW"]},{url:"/apis/maps/",langloc:["en","es","de","ja","ko","pt-BR","ru","zh-CN","zh-TW"]},{url:"/apis/ajaxlanguage/",langloc:["en","es","de","ja","fa","pt-BR","zh-CN"]}];(function(){var c=/\/\/([^\/]*)?(\/intl\/[^\/]*)?(\/.*)?/,a=/\/intl\/(([a-zA-Z]+)(-[a-zA-Z]+)?)(_[a-zA-Z]+)?/,f=a.exec(window.location.href);if(f==null){window.CODESITE_langLoc="en";window.CODESITE_langUrl=""}else{window.CODESITE_langLoc=f[1];window.CODESITE_langUrl=f[0].replace(/_ALL/,"")}jQuery(document).ready(window.CODESITE_langSelectInit=function(b,d){var e=b("#lang-dropdown")[0];if(e){var i=null;d=d||window.location;d=c.exec(d.href);for(var k=0;k<window.CODESITE_prodLang.length;k++)if(d[3].indexOf(window.CODESITE_prodLang[k].url)>=
0){i=window.CODESITE_prodLang[k].langloc;break}i||(i=["en","es","ja","ko","pt-BR","ru","zh-CN","zh-TW"]);e=new Menu(e,null,null,function(){CODESITE_click("/gb/sc/langselect/"+CODESITE_langLoc)});for(d=0;d<i.length;d++){k=i[d];var o=CODESITE_localeRedirect(k,window.location,false);e.addItem(window.CODESITE_langCode[k],o)}b("body").append(e.menu)}});window.CODESITE_localeRedirect=function(b,d,e){d=d||window.location;var i=c.exec(d.href);e=e==null?true:false;var k=d.href;if(i){k=i[3]?"http://"+i[1]+
"/intl/"+b+i[3]:"http://"+i[1]+"/intl/"+b+"/";if(e)d.href=k}return k};window.CODESITE_redirectToI18nContent=function(b,d){d=d||CODESITE_localeRedirect;b=(b=a.exec(b.href))&&b[1]||"en";d(b,null);return false}})(jQuery);(function(){function c(b){return window.encodeURIComponent?encodeURIComponent(b):escape(b)}function a(b){return window.decodeURIComponent?decodeURIComponent(b):unescape(b)}RegExp.escape=function(){var b=["/",".","*","+","?","|","(",")","[","]","{","}","\\"],d=new RegExp("(\\"+b.join("|\\")+")","g");return function(e){return e.replace(d,"\\$1")}}();window.CODESITE_minWidth=function(){var b=[],d=function(){if(CODESITE_minWidth)for(var e=0,i=b[0]||null;e<b.length;++e,i=b[e])try{if(i.parent_.offsetWidth<=
i.minWidth_){i.style.width=i.minWidth_+"px";i.style.overflow="hidden"}else{i.style.width="";i.style.overflow=""}}catch(k){}};if(jQuery.browser.msie){jQuery(window).resize(d);jQuery(d)}return function(e,i){if(jQuery.browser.msie){e=jQuery(e)[0];e.minWidth_=i-0;e.parent_=e.parentNode;b.push(e)}}}();window.CODESITE_createImageBar=function(b,d){b=new google.feeds.Feed(b);b.setResultFormat(google.feeds.Feed.XML_FORMAT);b.setNumEntries(2);b.load(function(e){if(!e.error){var i=jQuery(d);e=jQuery("item",
e.xmlDocument);var k=0;if(e.length>=2)k=2;for(var o=['<div class="post techtalk"><div class="screenshot"><a href="@link"><img alt="@origTitle" src="@thumb" height="80" width="90"></a></div><div class="info"><div class="name"><a href="@link" title="@origTitle">@title</a></div><div class="author videodateformat">',CODESITE_msgs.imagebar.POSTED_ON," @date</div></div></div>"].join(""),p=jQuery('<div class="g-section g-tpl-50-50 gc-techtalk"><div class="g-unit g-first">&nbsp;</div><div class="g-unit">&nbsp;</div></div>'),
A=0;A<k;A++){var E=jQuery("title:first",e[A]).text(),I=E,J=jQuery("link:first",e[A]).text(),Q=J.substring(31),H;if((H=e.eq(A).find("atom\\:updated, updated")).length){var O=H.eq(0).text().replace(/(\d{4})-(\d{2})-(\d{2})T.*/,"$2 $3 $1").split(" ");H=new Date;H.setFullYear(O[2],O[0]-1,O[1])}else if((H=e.eq(A).find("dc\\:date, date")).length)H=new Date(H.eq(0).text());O=google.feeds.getElementsByTagNameNS(e[A],"http://search.yahoo.com/mrss/","thumbnail")[0];var S=O.getAttribute("url");O.getAttribute("width");
O.getAttribute("height");H=H.getMonth()+1+"/"+H.getDate()+"/"+H.getFullYear();E=jQuery(o.replace(/@link/g,J).replace(/@videoid/g,Q).replace(/@thumb/g,S).replace(/@origTitle/g,E).replace(/@title/g,I).replace(/@date/g,H));jQuery(".g-unit:eq("+A+")",p).prepend(E)}i.append(p)}})};window.CODESITE_loadFeedAPI=function(){google.load("feeds","1",{callback:CODESITE_initFeedAPI})};jQuery(function(){jQuery("#searchForm").show();jQuery("#searchForm2").hide()});window.CODESITE_initFeedAPI=function(){if(CODESITE_codeVideoDiv.length)if(typeof _homepageGadgetData_!==
"undefined"){CODESITE_createImageBar(_homepageGadgetData_.homepageVideoFeedUrl,"#gc-codevideo");CODESITE_minWidth("#codesiteContent",1000)}if(CODESITE_macRecentChangesDiv.length){var b=new BlogPreview(document.getElementById("recentchanges"));b.show("http://googlemacplayground.blogspot.com/atom.xml","changes")}};function f(){var b="http://google-code-feed-gadget.googlecode.com/svn/build/prod/feedgadget/feedgadget.xml",d="",e="#parent="+escape(/[^?]*/.exec(window.location));if(/gadgettest=1/.exec(window.location)){b=
b.replace("/prod/","/test/");d="&debug=1&nocache=1"}var i=/\/intl\/(.*?)\//.exec(document.location);i=i?["&lang=",i[1]].join(""):"";b="http://www.gmodules.com/gadgets/ifr?synd=code&url="+b+i+d+e+"&";function k(J){var Q="",H;if(typeof J=="string"){if(J!="")Q="&"+c(J)}else for(H in J)Q+=["&",H,"=",c(J[H])].join("");return Q}if(CODESITE_codeBlogDiv.length){var o=[];e=window._apiGadgetData_||window._homepageGadgetData_;i=e.blogOptions;var p=410,A="100%",E="__MSG_blogs__";d="";if(i){A=i.width||A;p=i.height||
p;E=i.up_gadgetTitle||E;d=i.xtraFeeds||d}if(e.blogFeedUrl&&e.blogFeedUrl.length){if(!e.blogFeedName||e.blogFeedName.length==0)e.blogFeedName="__MSG_blogs__";o.push(c([e.blogFeedName,":",jQuery.trim(e.blogFeedUrl)].join("")))}e.googleCodeBlogIntlFeedUrl&&e.googleCodeBlogIntlFeedUrl.length&&o.push(c(["__MSG_blogs.local__:",jQuery.trim(e.googleCodeBlogIntlFeedUrl)].join("")));e.googleCodeBlogFeedUrl&&e.googleCodeBlogFeedUrl.length&&o.push(c(["__MSG_blogs.googleCode__:",jQuery.trim(e.googleCodeBlogFeedUrl)].join("")));
e.relatedDeveloperBlogsFeedUrl&&e.relatedDeveloperBlogsFeedUrl.length&&o.push(c(["__MSG_blogs.related__:",jQuery.trim(e.relatedDeveloperBlogsFeedUrl)].join("")));if(d.length){d=a(d).split("|");for(e=0;e<d.length;e++)o.push(c(jQuery.trim(d[e])))}if(o.length)jQuery('<iframe frameborder="0">').attr({src:[b,"up_showaddbutton=true&up_random=true&up_defer=true&up_gadgetTitle=",c(E),"&up_feeds=",o.join("|"),k(i||"")].join(""),frameborder:"0",width:A,height:p}).css({border:"none"}).appendTo(CODESITE_codeBlogDiv)}if(CODESITE_featuredDiv.length){var I=
[];e=window._apiGadgetData_||window._homepageGadgetData_;i=e.groupOptions;p=410;A="100%";E="__MSG_groups.community__";d="";if(i){A=i.width||A;p=i.height||p;E=i.up_gadgetTitle||E;d=i.xtraFeeds||d}e.featuredProjectsFeedUrl&&e.featuredProjectsFeedUrl.length&&I.push(c(["featured:__MSG_featured.projects__:",jQuery.trim(e.featuredProjectsFeedUrl)].join("")));if(e.groupFeedUrl&&e.groupFeedUrl.length){if(!e.groupFeedName||e.groupFeedName.length==0)e.groupFeedName="__MSG_groups.community__";I.push(c([e.groupFeedName,
":",jQuery.trim(e.groupFeedUrl)].join("")))}e.featureFeedUrl&&e.featureFeedUrl.length&&I.push(c(["featured:__MSG_featured.projects__:",jQuery.trim(e.featureFeedUrl)].join("")));e.articleFeedUrl&&e.articleFeedUrl.length&&I.push(c(["__MSG_articles__:",jQuery.trim(e.articleFeedUrl)].join("")));e.userGroupsFeedUrl&&e.userGroupsFeedUrl.length&&I.push(c(["__MSG_groups.user__:",jQuery.trim(e.userGroupsFeedUrl)].join("")));if(d.length){d=a(d).split("|");for(e=0;e<d.length;e++)I.push(c(jQuery.trim(d[e])))}if(I.length)jQuery('<iframe frameborder="0">').attr({src:[b,
"up_showaddbutton=true&up_defer=true&up_gadgetTitle=",c(E),"&up_feeds=",I.join("|"),k(i||"")].join(""),frameborder:"0",width:A,height:p}).css({border:"none"}).appendTo(CODESITE_featuredDiv)}}jQuery(function(){try{prettyPrint()}catch(b){}});jQuery(function(){var b=jQuery("#gc-pagecontent"),d=jQuery("#gc-toc");if(b.length){var e=jQuery('<div id="gc-collapsible-arrow">'),i=jQuery('<div id="gc-collapsible">'),k=function(o){var p=b.offset();e.css({left:p.left+"px",top:(o.pageY||o.clientY)+"px"})};b.css("position",
"relative").append(i);jQuery(document.body).append(e);jQuery.browser.msie&&jQuery.browser.version<7&&b.css("left","-5px");b.is(".skip-collapsible")||i.mouseover(function(o){i.addClass("hover");if(d.is(":hidden")){i.css("left","-3px");e.addClass("collapsed")}else e.removeClass("collapsed");e.show();k(o)}).mousemove(function(o){k(o)}).mouseout(function(){i.removeClass("hover");i.css("left","");e.hide()}).click(function(){e.hide();i.removeClass("hover").css("left","");d.toggle();if(d.is(":visible")){b.css("margin-left",
"");jQuery.browser.msie&&jQuery.browser.version<7&&b.css("left","-5px")}else{b.css("margin-left","0px");jQuery.browser.msie&&jQuery.browser.version<7&&b.css("left","")}});i.height(b.height())}});jQuery(window.CODESITE_createVideoAndGadgets=function(){CODESITE_codeBlogDiv=jQuery("#gc-blog-gadget");CODESITE_featuredDiv=jQuery("#gc-community-gadget");CODESITE_codeVideoDiv=jQuery("#gc-codevideo");CODESITE_macRecentChangesDiv=jQuery("#recentchanges");if(CODESITE_codeVideoDiv.length||CODESITE_macRecentChangesDiv.length)if(typeof window.google===
"undefined"||typeof window.google.feeds==="undefined"){var b=document.createElement("script");b.src="http://www.google.com/jsapi?key=internal-codesite&callback=CODESITE_loadFeedAPI";b.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(b)}else CODESITE_loadFeedAPI();if(CODESITE_codeBlogDiv.length||CODESITE_featuredDiv.length)f()});window.CODESITE_getIntlUrl=function(b){var d=["/intl/","/p/","/u/","/hosting/","/support/","/soc/","/codejam/","/apis/youtube/dashboard/"];if(b.indexOf("/")==
0){for(var e in d)if(b.indexOf(d[e])>=0)return b;return CODESITE_langUrl+b}else return b};window.CODESITE_getProduct=function(b){b=b||window.location.href;var d=/https?:\/\/[^\/]*(\/intl\/[^\/]*)?(\/apis)?(\/([a-z0-9]*))?\//;b=d.exec(b);if(!b)return"";return(b=b[4])?b:""};window.CODESITE_click=function(b){_gaq.push(["siteTracker._trackEvent",b,"clicked"])}})(jQuery);var CSE={QUERY_REGEX_HASH:/([^\#]*)\#(p=([^&]*)&)?q=(.*)$/,QUERY_REGEX_QUES:/([^\?]*)\?(p=([^&]*)&)?q=(.*)$/,CSE_URL:"http://code.google.com/cse/googlecode-context.xml",searchControl:{},recentQuery:"",showingSearchResults:false,iframeUrlInSync:true,init:function(){CSE.searchControl=new GSearchControl;CSE.searchControl.setResultSetSize(GSearch.LARGE_RESULTSET);CSE.searchControl.setLinkTarget(GSearch.LINK_TARGET_TOP);var c=CSE.getProductParam();if(CODESITE_getSearchTabTitle(c)!=null){CSE.addSearcher(c,
false);CODESITE_getSearchTabTitle(c,true)!=null&&CSE.addSearcher(c,true)}CSE.addSearcher("google_code",false);CSE.addSearcher("discussion",true);CSE.addSearcher("project_hosting",false);c=new GvideoSearch;c.setQueryAddition("ytchannel:GoogleDevelopers");c.setResultSetSize(GSearch.SMALL_RESULTSET);c.setUserDefinedLabel(CODESITE_getSearchTabTitle("developer_videos"));CSE.searchControl.addSearcher(c);c=document.getElementById("searchControl");var a=new GdrawOptions;a.setDrawMode(GSearchControl.DRAW_MODE_TABBED);
CSE.searchControl.draw(c,a);CSE.checkHash(CSE.QUERY_REGEX_HASH,window.location.href)},addSearcher:function(c,a){var f=new GwebSearch;a?f.setSiteRestriction({crefUrl:CSE.CSE_URL},c+"_groups"):f.setSiteRestriction({crefUrl:CSE.CSE_URL},c);f.setUserDefinedLabel(CODESITE_getSearchTabTitle(c,a));CSE.searchControl.addSearcher(f)},checkHash:function(c,a){if(c=c.exec(a)){c=decodeURI(c[4]);if(c!=""&&c!=CSE.recentQuery){jQuery("#gsearchInput").attr("value",c);CSE.executeQuery(c)}}else{if(CSE.showingSearchResults){jQuery("#searchControl").hide();
jQuery("#codesiteContent").show();CSE.recentQuery="";CSE.showingSearchResults=false;window.history.back(-1)}return false}return true},getProductParam:function(){var c=CSE.QUERY_REGEX_HASH.exec(window.location.href),a="";if(c&&c[4]){a=decodeURI(c[3]);if(CODESITE_getSearchTabTitle(a)==null)a=""}return a},executeQuery:function(c){if(c!="")if(CSE.iframeUrlInSync){var a=CSE.getProductParam();CSE.handleAnalytics(c,a);a=a!=""?"p="+encodeURI(a)+"&q="+encodeURI(c):"q="+encodeURI(c);jQuery.browser.msie&&CSE.handleIeHistory(a);
CSE.recentQuery=c;CODESITE_setURL("#"+a);jQuery("#searchControl").show();jQuery("#codesiteContent").hide();CSE.showingSearchResults=true;a=CSE.makeNoResultsHtml(c);CSE.searchControl.setNoResultsString(a);CSE.searchControl.execute(c)}},handleIeHistory:function(c){CSE.iframeUrlInSync=false;window.backiFrame.location.search=c;var a=window.setInterval(f,window.CODESITE_backButton.IFRAME_POLLING_INTERVAL);function f(){if(window.backiFrame.location.search.substring(1)==c){CSE.iframeUrlInSync=true;window.clearInterval(a)}}
},makeNoResultsHtml:function(c){for(var a=[CODESITE_msgs.search.NO_RESULTS_FOUND,"<b>",CSE.escapeHtml(c),"</b><br><br>",CODESITE_msgs.search.SUGGESTIONS_TITLE,":<br><br><ul>"].join(""),f=0,b=CODESITE_msgs.search.SUGGESTIONS_ITEMS.length;f<b;f++)a=[a,"<li>",CODESITE_msgs.search.SUGGESTIONS_ITEMS[f],"</li>"].join("");return[a,'</ul><br><a href="',CODESITE_msgs.search.SEARCH_URL,encodeURI(c),'">',CODESITE_msgs.search.TRY_WEBSEARCH,"</a>."].join("")},handleAnalytics:function(c,a){var f=jQuery("#searchControl").css("display")==
"block"?jQuery("div.gsc-tabhActive").text():"";c="/search/?q="+c+"&product="+a+"&tab="+f;if(window.siteTracker)try{siteTracker._trackPageview(c)}catch(b){}},escapeHtml:function(c){return c.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\'/g,"&#039;").replace(/\"/g,"&quot;")},pollHash:function(){if(jQuery.browser.msie)CSE.iframeUrlInSync&&CSE.checkHash(CSE.QUERY_REGEX_QUES,window.backiFrame.location.href)&&CSE.checkHash(CSE.QUERY_REGEX_HASH,window.location.href);else CSE.checkHash(CSE.QUERY_REGEX_HASH,
window.location.href)}};window.CODESITE_CSE=CSE;window.CODESITE_setURL=function(c){location.href=c};window.executeGSearch=function(c){if(c!="")if(CODESITE_CSE.iframeUrlInSync){var a=CODESITE_getProduct();if(a=="query")CODESITE_CSE.executeQuery(c);else{if(CODESITE_getSearchTabTitle(a)==null)a="";c=a!=""?"p="+encodeURI(a)+"&q="+encodeURI(c):"q="+encodeURI(c);CODESITE_setURL(CODESITE_langUrl+"/query/#"+c)}}};
window.CODESITE_getSearchTabTitle=function(c,a){if(!c)return null;var f=CODESITE_productDictionary.dictionariesList;for(var b in f){var d=CODESITE_productDictionary[f[b]].entries[c];if(d)if(a){if(d.groupsTitle)return d.groupsTitle}else return d.searchTabTitle||d.title}f=CODESITE_productDictionary.dictionariesList;for(b in f)if(d=CODESITE_productDictionary_default[f[b]].entries[c])if(a){if(d.groupsTitle)return d.groupsTitle}else return d.searchTabTitle||d.title;return null};(function(){function c(a,f){this.results_=[];this.buttonEl_=jQuery("#"+f);this.inputFieldEl_=jQuery("#"+a);var b=this;jQuery(this.buttonEl_).focus(function(){b.hideResultsWindow_()});this.searchResultsEl_=jQuery('<div id="cs-searchresults">');this.searchResultsEl_.click(function(d){(event||d).cancelBubble=true});this.searchResultsEl_.appendTo(document.body);jQuery('<div id="cs-recommended">').html(CODESITE_msgs.search.SUGGESTIONS).appendTo(this.searchResultsEl_);a=0;for(f=1;a<this.MAX_RESULTS_;a++,
f++)jQuery('<div id="searchResult'+f+'">').appendTo(this.searchResultsEl_);jQuery(document.body).click(function(d){return b.handleBodyClick_.call(b,d)});jQuery(document).keydown(function(d){return b.handleBodyKeyDown_.call(b,d)}).keypress(function(d){return b.handleBodyKeyPress_.call(b,d)}).keyup(function(d){return b.handleBodyKeyUp_.call(b,d)});jQuery(window).resize(function(d){b.handleBodyResize_.call(b,d)});window.onpageshow=function(d){d.persisted&&b.hideResultsWindow_()};this.inputFieldEl_.keyup(function(d){return b.handleInputKeyUp_.call(b,
d)}).focus(function(d){return b.handleInputFocus_.call(b,d)}).blur(function(d){return b.handleInputBlur_.call(b,d)}).click(function(d){return b.handleInputClick_.call(b,d)}).attr("autocomplete","off");this.initialized_=!!(this.inputFieldEl_.length&&this.searchResultsEl_.length&&this.buttonEl_.length)}c.prototype={results_:null,initialized_:false,searchActive_:true,resultsWindowHidden_:true,inputFieldEl_:0,searchResultsEl_:0,inputFieldHasFocus_:0,activeResult_:0,arrowKeyProcessed_:false,typedQuery_:"",
backgroundHover:"#3366CC",foregroundHover:"#ffffff",backgroundOff:"#ffffff",foregroundOff:"#000000",MAX_RESULTS_:7,FIRST_RESULT_:1,getQueryFromInputField_:function(){return jQuery.trim(this.inputFieldEl_.val().toLowerCase())},querySearch_:function(){if(this.searchActive_)if(this.typedQuery_.length==0)this.hideResultsWindow_();else{this.results_.splice(0,this.results_.length);var a=CODESITE_productDictionary.dictionariesList;for(var f in a){var b=CODESITE_productDictionary[a[f]];if(b.includeInSearchSuggest)for(var d in b.entries){var e=
b.entries[d],i=0,k=new RegExp("(?:\\s|^)"+RegExp.escape(this.typedQuery_)),o=e.title.toLowerCase().match(k);if(o!=null)i=2;for(var p in e.keywords){o=p.match(k);if(o!=null)i+=e.keywords[p];o=this.typedQuery_.split(" ");if(o.length>1)for(d=0;d<o.length;d++){var A=new RegExp("(?:\\s|^)"+o[d]);A=p.match(A);if(A!=null)i+=e.keywords[p]}}i>0&&this.results_.push({match:i,title:e.title,url:CODESITE_getIntlUrl(e.url)})}}this.results_.sort(this.sortMatches_);this.results_.length=Math.min(this.results_.length,
6);this.prepareResultsWindow_()}},sortMatches_:function(a,f){f=f.match;a=a.match;return f<a?-1:f>a?1:0},createSearchResultDiv:function(a){var f=a+1,b=this,d=jQuery("#searchResult"+f);d.attr("class","cs-searchresult").css({display:"block",textAlign:"left",zoom:"1"}).html(['<a tabindex="-1" id="searchResultLink',f,'" href="',this.results_[a].url,'">',this.results_[a].title,"</a>"].join("")).unbind().mouseover(function(){b.deactivateAllResults_();b.activateSearchResult_(f)}).mouseout(function(){b.deactivateSearchResult_(f)}).click(function(){window.location.href=
b.results_[a].url})},prepareResultsWindow_:function(){this.activeResult_=0;if(this.results_.length==0)this.hideResultsWindow_();else{for(var a=0;a<this.results_.length;a++)this.createSearchResultDiv(a);this.deactivateAllResults_();var f=this.results_.length+1;a=jQuery("#searchResult"+f);var b=this;a.attr("class","").css({textAlign:"right",display:"block",zoom:"1"}).html('<a style="color: #0000ff; text-decoration: underline;" id="searchResultLink'+f+'"> '+CODESITE_msgs.search.MORE+" &raquo;</a>").unbind().mouseup(function(){b.hideResultsWindow_();
executeGSearch(b.inputFieldEl_.val())}).mouseover(function(){b.deactivateAllResults_();b.activateSearchResult_(f)}).mouseout(function(){b.deactivateSearchResult_(f)});for(a=f+1;a<=this.MAX_RESULTS_;a++)jQuery("#searchResult"+a).hide();this.resultsWindowHidden_&&this.showResultsWindow_()}},updateDimensions_:function(){if(this.searchActive_){var a=this.inputFieldEl_.offset();a.left+=3;this.searchResultsEl_.css({left:a.left+"px",top:a.top+this.inputFieldEl_[0].offsetHeight+2+"px",width:this.inputFieldEl_.css("width")})}},
showResultsWindow_:function(){if(this.searchActive_){this.searchResultsEl_.css("visibility","hidden");this.updateDimensions_();this.searchResultsEl_.css("display","block");this.searchResultsEl_.css("visibility","visible");this.resultsWindowHidden_=false}},hideResultsWindow_:function(){if(!this.resultsWindowHidden_){this.searchResultsEl_.hide();this.resultsWindowHidden_=true;this.activeResult_=0}},activateSearchResult_:function(a){this.inputFieldEl_[0].blur();var f=jQuery("#searchResult"+a);a=jQuery("#searchResultLink"+
a);f.length&&f.css("backgroundColor",this.backgroundHover);a.length&&a.css("color","white")},deactivateSearchResult_:function(a){var f=jQuery("#searchResult"+a),b=jQuery("#searchResultLink"+a);f&&f.css("background",this.backgroundOff);if(b&&a==this.results_.length+1)b.css("color","#0000ff");else b&&b.css("color",this.foregroundOff)},deactivateAllResults_:function(){for(var a=0,f=this.results_.length+1;a<f;a++)this.deactivateSearchResult_(a+1)},activateNextSearchResult_:function(){if(this.results_.length>
0)if(this.activeResult_<=this.results_.length){this.deactivateSearchResult_(this.activeResult_);this.activeResult_++;this.activateSearchResult_(this.activeResult_)}},activatePrevSearchResult_:function(){if(this.results_.length>0)if(this.activeResult_==this.FIRST_RESULT_){this.deactivateSearchResult_(this.activeResult_);this.activeResult_=0;this.inputFieldEl_[0].focus()}else if(this.activeResult_>this.FIRST_RESULT_){this.deactivateSearchResult_(this.activeResult_);this.activeResult_--;this.activateSearchResult_(this.activeResult_)}},
handleInputKeyUp_:function(a){if(this.initialized_)if(this.searchActive_){a=a||window.event;a=a.which?a.which:a.keyCode;if(a==13){this.hideResultsWindow_();executeGSearch(this.inputFieldEl_.val())}else{a=this.getQueryFromInputField_();if(a!=this.typedQuery_){this.typedQuery_=a;this.querySearch_()}return true}}},handleBodyKeyDown_:function(a){var f=true,b=false;if(this.initialized_){a=a||window.event;var d=a.which?a.which:a.keyCode;a=a.target?a.target:a.srcElement;for(var e=jQuery("#searchResultLink"+
this.activeResult_),i=[this.inputFieldEl_[0],document.documentElement,document.body],k=0;k<i.length;k++)if(a==i[k])b=true;if(!b)return true;switch(d){case 13:if(this.activeResult_>=0){if(this.activeResult_==this.results_.length+1){this.hideResultsWindow_();executeGSearch(this.inputFieldEl_.val())}else if(e.length)location.href=e.attr("href");f=false}break;case 27:if(this.searchActive_){this.resultsWindowHidden_?this.inputFieldEl_.val(""):this.hideResultsWindow_();f=false}else{this.searchActive_=true;
this.inputFieldEl_[0].focus();f=true}break;case 40:case 63233:if(this.resultsWindowHidden_&&this.inputFieldHasFocus_&&d!=39){this.searchActive_=true;this.querySearch_();f=false}else if(!this.resultsWindowHidden_&&(this.activeResult_>0||d!=39)){this.deactivateAllResults_();this.activateNextSearchResult_();f=false;this.arrowKeyProcessed_=true}break;case 38:case 63235:if(!this.resultsWindowHidden_){this.deactivateAllResults_();this.activatePrevSearchResult_();f=false;this.arrowKeyProcessed_=true}break;
case 37:case 39:if(!this.inputFieldHasFocus_&&!this.resultsWindowHidden_){this.arrowKeyProcessed_=false;this.inputFieldEl_[0].focus()}}}return f},handleBodyKeyPress_:function(a){if(this.initialized_){a=a||window.event;a=a.which?a.which:a.keyCode;if(this.arrowKeyProcessed_&&a>=37&&a<=40)return false;return true}},handleBodyKeyUp_:function(a){var f=true;a=a||window.event;this.arrowKeyProcessed_=false;return f},handleBodyResize_:function(){this.updateDimensions_();return true},handleInputBlur_:function(){this.inputFieldHasFocus_=
0},handleInputFocus_:function(){this.inputFieldHasFocus_=0.5;this.initialized_&&this.deactivateAllResults_()},handleInputClick_:function(a){a=a||window.event;this.searchActive_=a.cancelBubble=true;if(this.inputFieldHasFocus_==1)this.resultsWindowHidden_&&this.querySearch_();else this.inputFieldHasFocus_=1},handleBodyClick_:function(a){a=a||window.event;(a=a.target?a.target:a.srcElement)&&a.parentNode&&this.hideResultsWindow_()}};window.CODESITE_asYouTypeSearch=c;jQuery(function(){try{new c("gsearchInput",
"gsearchButton")}catch(a){}})})(jQuery);(function(){var c={POLLING_INTERVAL:450,IFRAME_POLLING_INTERVAL:50,init:function(){var a=window.location.href.match(/\/query\//);if(jQuery.browser.msie||jQuery.browser.mozilla||navigator.userAgent.indexOf("Chrome")!=-1||jQuery.browser.safari&&navigator.userAgent.indexOf("Version/")!=-1)c.poll(a)},poll:function(a){a&&window.setInterval(function(){a&&window.CODESITE_CSE.pollHash()},c.POLLING_INTERVAL)}};window.CODESITE_backButton=c})(jQuery);jQuery(document).ready(function(){window.CODESITE_backButton.init()});window.PR_SHOULD_USE_CONTINUATION=true,window.PR_TAB_WIDTH=8,window.PR_normalizedHtml=window.PR=window.prettyPrintOne=window.prettyPrint=void 0,window._pr_isIE6=function(){var c=navigator&&navigator.userAgent&&navigator.userAgent.match(/\bMSIE ([678])\./);return c=c?+c[1]:false,window._pr_isIE6=function(){return c},c},function(){var c=true,a=null,f="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try typeof ",
b=f+"alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename using virtual wchar_t where ",d=f+"abstract boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ",e=d+"as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ";
f=f+"debugger eval export function get null set undefined var with Infinity NaN ";var i="caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ",k="break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ",o="break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ",
p="break continue do else for if return while case done elif esac eval fi function in local set then until ",A=b+e+f+i+k+o+p,E=function(){var g=["!","!=","!==","#","%","%=","&","&&","&&=","&=","(","*","*=","+=",",","-=","->","/","/=",":","::",";","<","<<","<<=","<=","=","==","===",">",">=",">>",">>=",">>>",">>>=","?","@","[","^","^=","^^","^^=","{","|","|=","||","||=","~","break","case","continue","delete","do","else","finally","instanceof","return","throw","try","typeof"],h="(?:^^|[+-]",j;for(j=
0;j<g.length;++j)h+="|"+g[j].replace(/([^=<>:&a-z])/g,"\\$1");return h+=")\\s*",h}(),I=/&/g,J=/</g,Q=/>/g,H=/\"/g,O,S,Z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,V;function oa(g){return g.replace(I,"&amp;").replace(J,"&lt;").replace(Q,"&gt;").replace(H,"&quot;")}function W(g){return g.replace(I,"&amp;").replace(J,"&lt;").replace(Q,"&gt;")}ha=/&lt;/g,ga=/&gt;/g,ba=/&apos;/g,ja=/&quot;/g,aa=/&amp;/g,ia=/&nbsp;/g;function pa(g){var h=g.indexOf("&"),j,l,m,z;if(h<0)return g;for(--h;(h=g.indexOf("&#",h+1))>=0;)l=g.indexOf(";",
h),l>=0&&(m=g.substring(h+3,l),z=10,m&&m.charAt(0)==="x"&&(m=m.substring(1),z=16),j=parseInt(m,z),isNaN(j)||(g=g.substring(0,h)+String.fromCharCode(j)+g.substring(l+1)));return g.replace(ha,"<").replace(ga,">").replace(ba,"'").replace(ja,'"').replace(ia," ").replace(aa,"&")}function ka(g){return"XMP"===g.tagName}Z=/[\r\n]/g;function qa(g,h){var j;return"PRE"===g.tagName?c:Z.test(h)?(j="",g.currentStyle?(j=g.currentStyle.whiteSpace):window.getComputedStyle&&(j=window.getComputedStyle(g,a).whiteSpace),
!j||j==="pre"):c}function U(g,h){var j,l,m;switch(g.nodeType){case 1:m=g.tagName.toLowerCase(),h.push("<",m);for(l=0;l<g.attributes.length;++l){j=g.attributes[l];if(j.specified)h.push(" "),U(j,h)}h.push(">");for(j=g.firstChild;j;j=j.nextSibling)U(j,h);(g.firstChild||!/^(?:br|link|img)$/.test(m))&&h.push("</",m,">");break;case 2:h.push(g.name.toLowerCase(),'="',oa(g.value),'"');break;case 3:case 4:h.push(W(g.nodeValue))}}function la(g){var h=0,j=false,l=false,m,z,u,C;for(m=0,z=g.length;m<z;++m){u=
g[m];if(u.ignoreCase)l=c;else if(/[a-z]/i.test(u.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){j=c,l=false;break}}function s(y){if(y.charAt(0)!=="\\")return y.charCodeAt(0);switch(y.charAt(1)){case "b":return 8;case "t":return 9;case "n":return 10;case "v":return 11;case "f":return 12;case "r":return 13;case "u":case "x":return parseInt(y.substring(2),16)||y.charCodeAt(1);case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":return parseInt(y.substring(1),8);default:return y.charCodeAt(1)}}
function D(y){var r;return y<32?(y<16?"\\x0":"\\x")+y.toString(16):(r=String.fromCharCode(y),(r==="\\"||r==="-"||r==="["||r==="]")&&(r="\\"+r),r)}function F(y){var r=y.substring(1,y.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));y=[];var v=[],B=r[0]==="^",n,w,q,t,x,N,K;for(w=B?1:0,t=r.length;w<t;++w){N=r[w];switch(N){case "\\B":case "\\b":case "\\D":case "\\d":case "\\S":case "\\s":case "\\W":case "\\w":y.push(N);
continue}q=s(N),w+2<t&&"-"===r[w+1]?(n=s(r[w+2]),w+=2):(n=q),v.push([q,n]),n<65||q>122||(n<65||q>90||v.push([Math.max(65,q)|32,Math.min(n,90)|32]),n<97||q>122||v.push([Math.max(97,q)&-33,Math.min(n,122)&-33]))}v.sort(function(M,R){return M[0]-R[0]||R[1]-M[1]}),n=[],q=[NaN,NaN];for(w=0;w<v.length;++w)K=v[w],K[0]<=q[1]+1?(q[1]=Math.max(q[1],K[1])):n.push(q=K);x=["["],B&&x.push("^"),x.push.apply(x,y);for(w=0;w<n.length;++w)K=n[w],x.push(D(K[0])),K[1]>K[0]&&(K[1]+1>K[0]&&x.push("-"),x.push(D(K[1])));
return x.push("]"),x.join("")}function G(y){var r=y.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),v=r.length,B=[],n,w,q,t,x;for(t=0,q=0;t<v;++t)x=r[t],x==="("?++q:"\\"===x.charAt(0)&&(w=+x.substring(1),w&&w<=q&&(B[w]=-1));for(t=1;t<B.length;++t)-1===B[t]&&(B[t]=++h);for(t=0,q=0;t<v;++t)x=r[t],x==="("?(++q,B[q]===void 0&&(r[t]="(?:")):"\\"===x.charAt(0)&&(w=+x.substring(1),
w&&w<=q&&(r[t]="\\"+B[q]));for(t=0,q=0;t<v;++t)"^"===r[t]&&"^"!==r[t+1]&&(r[t]="");if(y.ignoreCase&&j)for(t=0;t<v;++t)x=r[t],n=x.charAt(0),x.length>=2&&n==="["?(r[t]=F(x)):n!=="\\"&&(r[t]=x.replace(/[a-zA-Z]/g,function(N){N=N.charCodeAt(0);return"["+String.fromCharCode(N&-33,N|32)+"]"}));return r.join("")}C=[];for(m=0,z=g.length;m<z;++m){u=g[m];if(u.global||u.multiline)throw new Error(""+u);C.push("(?:"+G(u)+")")}return new RegExp(C.join("|"),l?"gi":"g")}O=a;function ra(g){var h,j;a===O&&(j=document.createElement("PRE"),
j.appendChild(document.createTextNode('<!DOCTYPE foo PUBLIC "foo bar">\n<foo />')),O=!/</.test(j.innerHTML));if(O)return h=g.innerHTML,ka(g)?(h=W(h)):qa(g,h)||(h=h.replace(/(<br\s*\/?>)[\r\n]+/g,"$1").replace(/(?:[\r\n]+[ \t]*)+/g," ")),h;h=[];for(g=g.firstChild;g;g=g.nextSibling)U(g,h);return h.join("")}function sa(g){var h=0;return function(j){var l=a,m=0,z,u,C,s;for(u=0,C=j.length;u<C;++u){z=j.charAt(u);switch(z){case "\t":for(l||(l=[]),l.push(j.substring(m,u)),s=g-h%g,h+=s;s>=0;s-=16)l.push("                ".substring(0,
s));m=u+1;break;case "\n":h=0;break;default:++h}}return l?(l.push(j.substring(m)),l.join("")):j}}ea=new RegExp("[^<]+|<!--[\\s\\S]*?--\>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>|</?[a-zA-Z](?:[^>\"']|'[^']*'|\"[^\"]*\")*>|<","g"),fa=/^<\!--/,da=/^<!\[CDATA\[/,ca=/^<br\b/i,V=/^<(\/?)([a-zA-Z][a-zA-Z0-9]*)/;function ta(g){g=g.match(ea);var h=[],j=0,l=[],m,z,u,C,s,D,F,G;if(g)for(z=0,D=g.length;z<D;++z){s=g[z];if(s.length>1&&s.charAt(0)==="<"){if(!fa.test(s))if(da.test(s))h.push(s.substring(9,s.length-3)),j+=s.length-
12;else if(ca.test(s))h.push("\n"),++j;else if(s.indexOf("nocode")>=0&&ua(s)){F=s.match(V)[2],m=1;for(u=z+1;u<D;++u)if((G=g[u].match(V))&&G[2]===F)if(G[1]==="/"){if(--m===0)break}else++m;u<D?(l.push(j,g.slice(z,u+1).join("")),z=u):l.push(j,s)}else l.push(j,s)}else C=pa(s),h.push(C),j+=C.length}return{source:h.join(""),tags:l}}function ua(g){return!!g.replace(/\s(\w+)\s*=\s*(?:\"([^\"]*)\"|'([^\']*)'|(\S+))/g,' $1="$2$3$4"').match(/[cC][lL][aA][sS][sS]=\"[^\"]*\bnocode\b/)}function X(g,h,j,l){var m;
if(h)m={source:h,basePos:g},j(m),l.push.apply(l,m.decorations)}function T(g,h){var j={},l,m,z,u;return function(){var C=g.concat(h),s=[],D={},F,G,y,r,v,B,n;for(G=0,r=C.length;G<r;++G){v=C[G],n=v[3];if(n)for(F=n.length;--F>=0;)j[n.charAt(F)]=v;B=v[1],y=""+B,D.hasOwnProperty(y)||(s.push(B),D[y]=a)}s.push(/[\0-\uffff]/),u=la(s)}(),m=h.length,z=/\S/,l=function(C){var s=C.source,D=C.basePos,F,G,y,r,v,B,n,w,q,t,x,N,K,M,R,Y;F=[D,"pln"],t=0,Y=s.match(u)||[],N={};for(K=0,w=Y.length;K<w;++K){M=Y[K],x=N[M],
n=void 0;if(typeof x==="string")v=false;else{if(q=j[M.charAt(0)])n=M.match(q[1]),x=q[0];else{for(s=0;s<m;++s){q=h[s],n=M.match(q[1]);if(n){x=q[0];break}}n||(x="pln")}v=x.length>=5&&"lang-"===x.substring(0,5),v&&!(n&&typeof n[1]==="string")&&(v=false,x="src"),v||(N[M]=x)}R=t,t+=M.length,v?(G=n[1],r=M.indexOf(G),y=r+G.length,n[2]&&(y=M.length-n[2].length,r=y-G.length),B=x.substring(5),X(D+R,M.substring(0,r),l,F),X(D+R+r,G,ma(B,G),F),X(D+R+y,M.substring(y),l,F)):F.push(D+R,x)}C.decorations=F},l}function P(g){var h=
[],j=[],l,m;return g.tripleQuotedStrings?h.push(["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,a,"'\""]):g.multiLineStrings?h.push(["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,a,"'\"`"]):h.push(["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,a,"\"'"]),g.verbatimStrings&&
j.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,a]),g.hashComments&&(g.cStyleComments?(h.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,a,"#"]),j.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a])):h.push(["com",/^#[^\r\n]*/,a,"#"])),g.cStyleComments&&(j.push(["com",/^\/\/[^\r\n]*/,a]),j.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,a])),g.regexLiterals&&(l="/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/",
j.push(["lang-regex",new RegExp("^"+E+"("+l+")")])),m=g.keywords.replace(/^\s+|\s+$/g,""),m.length&&j.push(["kwd",new RegExp("^(?:"+m.replace(/\s+/g,"|")+")\\b"),a]),h.push(["pln",/^\s+/,a," \r\n\t\u00a0"]),j.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,a],["typ",/^@?[A-Z]+[a-z][A-Za-z_$@0-9]*/,a],["pln",/^[a-z_$][a-z_$@0-9]*/i,a],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w\.$@\'\"\`\/\#]*/,a]),T(h,j)}A=P({keywords:A,hashComments:c,
cStyleComments:c,multiLineStrings:c,regexLiterals:c});function va(g){var h=g.source,j=g.extractedTags,l=g.decorations,m=[],z=0,u=a,C=a,s=0,D=0,F=sa(window.PR_TAB_WIDTH),G=/([\r\n ]) /g,y=/(^| ) /gm,r=/\r\n?|\n/g,v=/[ \r\n]$/,B=c,n;function w(q){var t,x;q>z&&(u&&u!==C&&(m.push("</span>"),u=a),!u&&C&&(u=C,m.push('<span class="',u,'">')),t=W(F(h.substring(z,q))).replace(B?y:G,"$1&nbsp;"),B=v.test(t),x=window._pr_isIE6()?"&nbsp;<br />":"<br />",m.push(t.replace(r,x)),z=q)}for(;c;){s<j.length?D<l.length?
(n=j[s]<=l[D]):(n=c):(n=false);if(n)w(j[s]),u&&(m.push("</span>"),u=a),m.push(j[s+1]),s+=2;else if(D<l.length)w(l[D]),C=l[D+1],D+=2;else break}w(h.length),u&&m.push("</span>"),g.prettyPrintedHtml=m.join("")}S={};function L(g,h){var j,l;for(l=h.length;--l>=0;)j=h[l],S.hasOwnProperty(j)?"console"in window&&console.warn("cannot override language handler %s",j):(S[j]=g)}function ma(g,h){return g&&S.hasOwnProperty(g)||(g=/^\s*</.test(h)?"default-markup":"default-code"),S[g]}L(A,["default-code"]),L(T([],
[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),L(T([["pln",/^[\s]+/,a," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,
a,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),L(T([],[["atv",/^[\s\S]+/]]),["uq.val"]),L(P({keywords:b,
hashComments:c,cStyleComments:c}),["c","cc","cpp","cxx","cyc","m"]),L(P({keywords:"null true false"}),["json"]),L(P({keywords:e,hashComments:c,cStyleComments:c,verbatimStrings:c}),["cs"]),L(P({keywords:d,cStyleComments:c}),["java"]),L(P({keywords:p,hashComments:c,multiLineStrings:c}),["bsh","csh","sh"]),L(P({keywords:k,hashComments:c,multiLineStrings:c,tripleQuotedStrings:c}),["cv","py"]),L(P({keywords:i,hashComments:c,multiLineStrings:c,regexLiterals:c}),["perl","pl","pm"]),L(P({keywords:o,hashComments:c,
multiLineStrings:c,regexLiterals:c}),["rb"]),L(P({keywords:f,cStyleComments:c,regexLiterals:c}),["js"]),L(T([],[["str",/^[\s\S]+/]]),["regex"]);function na(g){var h=g.sourceCodeHtml,j=g.langExtension,l,m;g.prettyPrintedHtml=h;try{m=ta(h),l=m.source,g.source=l,g.basePos=0,g.extractedTags=m.tags,ma(j,l)(g),va(g)}catch(z){"console"in window&&(console.log(z),console.trace())}}function wa(g,h){g={sourceCodeHtml:g,langExtension:h};return na(g),g.prettyPrintedHtml}function xa(g){var h=window._pr_isIE6(),
j=h===6?"\r\n":"\r",l=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],m=[],z,u,C,s,D,F;for(u=0;u<l.length;++u)for(C=0,D=l[u].length;C<D;++C)m.push(l[u][C]);l=a,z=Date,z.now||(z={now:function(){return(new Date).getTime()}}),s=0;function G(){for(var r=window.PR_SHOULD_USE_CONTINUATION?z.now()+250:Infinity,v,B,n,w,q;s<m.length&&z.now()<r;++s){B=m[s];if(B.className&&B.className.indexOf("prettyprint")>=0){n=B.className.match(/\blang-(\w+)\b/),
n&&(n=n[1]),w=false;for(q=B.parentNode;q;q=q.parentNode)if((q.tagName==="pre"||q.tagName==="code"||q.tagName==="xmp")&&q.className&&q.className.indexOf("prettyprint")>=0){w=c;break}w||(v=ra(B),v=v.replace(/(?:\r\n?|\n)$/,""),F={sourceCodeHtml:v,langExtension:n,sourceNode:B},na(F),y())}}s<m.length?setTimeout(G,250):g&&g()}function y(){var r=F.prettyPrintedHtml,v,B,n,w,q,t;if(r){n=F.sourceNode;if(ka(n)){t=document.createElement("PRE");for(w=0;w<n.attributes.length;++w)v=n.attributes[w],v.specified&&
(B=v.name.toLowerCase(),B==="class"?(t.className=v.value):t.setAttribute(v.name,v.value));t.innerHTML=r,n.parentNode.replaceChild(t,n),n=t}else n.innerHTML=r;if(h&&n.tagName==="PRE"){v=n.getElementsByTagName("br");for(r=v.length;--r>=0;)q=v[r],q.parentNode.replaceChild(document.createTextNode(j),q)}}}G()}window.PR_normalizedHtml=U,window.prettyPrintOne=wa,window.prettyPrint=xa,window.PR={combinePrefixPatterns:la,createSimpleLexer:T,registerLangHandler:L,sourceDecorator:P,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",
PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}}();(function(){function c(a){this.parentElem=a.parent;this.controlsElem=a.controls;this.contentElem=a.content;if(!(!this.parentElem||!this.controlsElem||!this.contentElem)){c.active[this.index=c.active.length]=this;var f=this;this.toggleElem=jQuery('<img src="images/cleardot.gif">').addClass("collapsible-control").mouseover(function(){var b=jQuery(this);b.addClass("collapsible-hover")}).mouseout(function(){var b=jQuery(this);b.removeClass("collapsible-hover")});this.controlsElem.mousedown(function(){var b=
jQuery(f.toggleElem),d=jQuery(f.contentElem);if(d.is(":visible")){b.addClass("collapsible-plus").removeClass("collapsible-minus");d.hide()}else{b.addClass("collapsible-minus").removeClass("collapsible-plus");d.show()}});if(this.parentElem.is(".closed"))a.opened=false;if(this.parentElem.is(".opened"))a.opened=true;if(a.opened===true)this.toggleElem.addClass("collapsible-minus");else{this.toggleElem.addClass("collapsible-plus");this.contentElem.hide()}this.controlsElem.prepend(this.toggleElem);this.parentElem.addClass("collapsible-done")}}
c.prototype={index:-1,parentElem:null,controlsElem:null,contentElem:null,toggleElem:null};jQuery.extend(c,{active:[],convert:function(){for(var a=jQuery(".collapsible"),f=0;f<a.length;f++)if(a[f].className.indexOf("collapsible-done")==-1){var b=jQuery(".collapsible-controls",a[f]),d=jQuery(".collapsible-content",a[f]);b.length&&d.length&&new c({parent:jQuery(a[f]),controls:b,content:d})}}});window.CODESITE_collapsible=c;jQuery(function(){CODESITE_collapsible.convert()})})();(function(){var c=function(k,o,p){this.numCompleteTranslations=0;this.contentContainers=k;this.originalText=[];this.translatedText=[];this.srcLang=o;this.destLang=p;for(k=0;k<this.contentContainers.length;k++)this.originalText.push(this.contentContainers[k].innerHTML)};c.prototype.translationComplete=function(k,o,p,A){if(p==200&&!A){for(p=0;p<o.length;p++)if(o[p].responseStatus!=200){o.slice(p);p--}this.translatedText[k]=o;this.numCompleteTranslations++;if(this.numCompleteTranslations==this.numTranslations){k=
[];for(p=0;p<this.translatedText.length;p++)k=k.concat(this.translatedText[p]);this.translatedText=k;for(p=0;p<this.translatedText.length;p++)if(this.translatedText[p].responseStatus==200)this.contentContainers[p].innerHTML=this.translatedText[p].responseData.translatedText}}};c.prototype.createScriptURLs=function(){var k=this.contentContainers,o=this.srcLang,p=this.destLang,A=[];o="http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&callback=CODESITE_newsBlogTH.translationComplete&langpair="+
o+"%7C"+p;p=0;for(var E=o+"&context="+p,I=0;I<k.length;I++){var J=encodeURIComponent(k[I].innerHTML);if(J)if((E+J).length<1800)E+="&q="+J;else{A.push(E);p++;E=o+"&context="+p;if((E+J).length<1800)E+="&q="+J}}A.push(E);return A};c.prototype.translate=function(){if(this.translatedText.length>0)for(var k=0;k<this.translatedText.length;k++){if(this.translatedText[k].responseStatus==200)this.contentContainers[k].innerHTML=this.translatedText[k].responseData.translatedText}else{var o=this.createScriptURLs();
this.numTranslations=o.length;for(k=0;k<o.length;k++)jQuery.ajax({type:"GET",url:o[k],dataType:"script"})}};c.prototype.revert=function(){for(var k=0;k<this.contentContainers.length;k++)jQuery(this.contentContainers[k]).text(this.originalText[k])};function a(){window.CODESITE_newsBlogTH.translate();jQuery("#gc-translate-direction").html("&nbsp;&larr;");jQuery(this).unbind();jQuery(this).click(f)}function f(){window.CODESITE_newsBlogTH.revert();jQuery("#gc-translate-direction").html("&nbsp;&rarr;");
jQuery(this).unbind();jQuery(this).click(a)}function b(k){switch(k){case "pt-BR":return"pt-PT";default:return k}}var d=document.getElementById("news")||null;if(d&&CODESITE_langLoc&&typeof window.CODESITE_langCode[CODESITE_langLoc]!=="undefined"){d=d.getElementsByTagName("p");for(var e=[],i=0;i<d.length;i++)d[i].className.indexOf("blog-entry-summary")!=-1&&e.push(d[i]);window.CODESITE_newsBlogTH=new c(e,"",b(CODESITE_langLoc));c=jQuery("#gc-translate-blogs");c.text(window.CODESITE_langCode[CODESITE_langLoc]);
c.click(a)}})(jQuery);(function(c){function a(){var f=window.location.pathname.replace(/\/index[.]html$/,"/");return"http://"+window.location.hostname+f}window.CODESITE_displayComments=function(){var f=c('<h2 id="commentWidgetTitle">User Notes</h2>'+CODESITE_zipItDesc+'<div id="commentwidget"></div>');c("#gc-pagecontent").append(f);f=a();google.annotations.create("CommentThread","commentwidget",{entity:{url:f},inline:true,qualityScore:0.415,comparisonType:3,collapsiblePoster:true,commentTemplate:'<div class="commentHeader"><z:Nickname/> - <z:DateTime/> <z:NumUsersFoundThisHelpful/></div><div class="commentContent"><z:CommentDisplay/></div><div class="commentHelpful">Was this note helpful? <z:VotingEditor/></div><div class="commentSpam"><z:ReportSpamLink/></div>'});
google.annotations.fetch()};window.CODESITE_initComments=function(f,b,d){f=f||"http://www.google.com";b=b||window.location;var e=d||c.getScript;if(b.pathname.indexOf("/intl/")==-1){d="&callback=CODESITE_displayComments&appid=92";if(b.hostname!="code.google.com")d+="&dev=1";var i=f+"/reviews/scripts/annotations_bootstrap.js?"+d;c(function(){e(i)})}}})(jQuery);
